package com.tuanzi.loan.business.service.miniApps.recommend;

import java.util.List;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.entity.miniApps.articleLibrary.MiniAppsArticle;
import com.tuanzi.loan.business.entity.miniApps.articleLibrary.MiniAppsArticleRelations;
import com.tuanzi.loan.core.service.BaseAuditService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.miniApps.recommend.HealthHeadlineRecommendRequest;
import com.tuanzi.loan.vo.response.miniApps.recommend.HealthHeadlineRecommendResponse;
import com.tuanzi.loan.vo.view.miniApps.MiniAppsRelationVo;
import com.tuanzi.loan.vo.view.miniApps.recommend.HealthHeadlineRecommendInfoView;

public interface HealthHeadlineRecommendService extends BaseAuditService<MiniAppsArticleRelations, Long> {
	
	void saveAdvertise(HealthHeadlineRecommendInfoView view);
	
	HealthHeadlineRecommendInfoView loadHealthHeadlineInfoView(Long articleRelationId);
	
	void deleteAdvertise(Long articleRelationId);
	
	void updateAdvertiseStatus(HealthHeadlineRecommendRequest request ,Integer status);
	
	Page<HealthHeadlineRecommendResponse> list(PageSearcher<HealthHeadlineRecommendRequest> pageSearcher);
	
	List<MiniAppsRelationVo> getMiniAppsList();
	
	List<MiniAppsRelationVo> getAdvertiseList();
	
	List<MiniAppsArticle> getRecommendArticle();

	void cleanCache();
}
